Skip to content

Upgrade to Next 16 + Tailwind 4#15

Open
MaxGhenis wants to merge 2 commits intomainfrom
upgrade-next-16-tw4
Open

Upgrade to Next 16 + Tailwind 4#15
MaxGhenis wants to merge 2 commits intomainfrom
upgrade-next-16-tw4

Conversation

@MaxGhenis
Copy link
Contributor

Summary

  • Upgrade Next.js from v14 to v16 and Tailwind CSS from v3 to v4
  • Remove autoprefixer and postcss devDependencies (bundled in Tailwind 4)
  • Delete tailwind.config.js and postcss.config.js (replaced by @theme block in CSS)
  • Migrate globals.css to use @import "tailwindcss" + @theme { } for design tokens
  • Convert next.config.js to next.config.mjs (ESM required by Next 16)

Test plan

  • bun run build succeeds with zero errors
  • Verify deployed site renders correctly (fonts, colors, layout unchanged)

🤖 Generated with Claude Code

- next ^14 → ^16, tailwindcss ^3 → ^4
- Remove autoprefixer and postcss devDependencies
- Delete tailwind.config.js and postcss.config.js
- Migrate globals.css: @tailwind directives → @import "tailwindcss" + @theme block
- Convert next.config.js → next.config.mjs (ESM required by Next 16)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Mar 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
uk-spring-statement-2026 Ready Ready Preview, Comment Mar 7, 2026 1:50pm

Request Review

- Import tokens.css in globals.css and wire @theme vars to design-system CSS custom properties
- Replace all :root hex definitions with var(--pe-color-*) references
- Swap hardcoded #fff, #EF4444, #059669, #dc2626, #d97706, #e2e8f0, #e8edf2 in CSS with semantic token vars
- Use colors.white, colors.text.warning, chartColors.positive/negative in JSX chart components
- Two hex values retained in IntraDecileChart (red-800, green-700) with comments — no matching token exists

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant